import random
number = random.randint(1,100)
count = 0
print ('猜数字游戏')
while True:
    guess = int(input('输入数字:'))
    count += 1
    if guess == number:
        print ('恭喜猜中，本轮幸运数字')
        print (number)
        break
    elif guess > number:
        print('猜大了')
    else :
        print('猜小了')



